<%-- 
    Document   : fn1
    Created on : 2014/8/19, 上午 09:36:14
    Author     : Yu
--%>

<%@page import="java.util.Date"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
    request.setAttribute("x", "Hello World");
    request.setAttribute("y", new int[]{2, 4, 6, 8, 10});
    ArrayList list = new ArrayList();
    list.add("Hi");
    list.add(5);
    list.add(new Date());
    request.setAttribute("z", list );


%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>fn1</title>
    </head>
    <body>
        <h1>-----fn1------</h1>
	${fn:length(x)} <br>
	${fn:length(y)}<br>
	${fn:length(z)}<br>
	${fn:toLowerCase(x)}<br>
	${fn:toUpperCase(x)}<br>
	
    </body>
</html>
